package com.alex.dao;

import com.alex.pojo.Blog;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface BlogMapper {

    Blog getBlog(@Param("id")String id);

    int addBlog(Blog blog);

    List<Blog> queryBlogIF(Map map);

    List<Blog> queryBlogLikeIF(Map map);

    List<Blog> queryBlogChoose(Map map);

    int updateBlogSet(Map map);

    int updateBlogTrimSet(Map map);

    List<Blog> queryBlogForEach(Map map);

    int updateBlogSetSql(Map map);
}
